import React from 'react';
// import Counter from './components/Counter';
// import Welcome from './components/Welcome'
import Todo from './components/Todo'

class App extends React.Component {
  constructor(props) {
    super(props); // 继承必须在这里调用 super
    this.state = {} // class 组件的 data，响应式数据
  }
  render() { // 每一个class 组件必须设置 render，然后在 render 中返回dom 节点
    return (
      <div>
        <h1>React App</h1>
        {/* <Counter /> */}
        {/* <Welcome /> */}
        {/* <Welcome msg="Hi Props" /> */}
        {/* <Welcome msg={123} /> */}

        <Todo />
      </div>
    )
  }
}

export default App;
